<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
	'id'=>'type-form',
    'type'=>'horizontal',
    'inlineErrors'=>false,
    'enableClientValidation'=>true,
	'enableAjaxValidation'=>false,
)); ?>

	<p class="help-block"><?php echo Yii::t('notices','Fields with <span class="required">*</span> are required.'); ?></p>

	<?php echo $form->errorSummary($model); ?>

	<?php echo $form->textFieldRow($model,'name',array('class'=>'span5','maxlength'=>50)); ?>

	<?php echo $form->textAreaRow($model,'description',array('class'=>'span5','maxlength'=>500,'rows'=>4)); ?>

	<div class="form-actions">
		<?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'submit',
			'type'=>'primary',
			'label'=>$model->isNewRecord ? Yii::t('zii','Create') : Yii::t('zii','Save'),
		)); ?>
	</div>

<?php $this->endWidget(); ?>
